<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="./jquery.js"></script>
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./bootstrap/css/bootstrap-theme.min.css">
    <script src="./bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="./css/goods_list.css">
    <script src="./js/sort.js"></script>
    <script src="./js/paging.js"></script>
</head>

<body>
	<jsp:include page="./head.jsp"></jsp:include>
   

    <div id="content_container">
        <div id="top_nav">
            <button type="button" class="btn btn-default">发布时间 <span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span></button>
            <button type="button" class="btn btn-default">价格 <span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span></button>
            <button type="button" class="btn btn-default">浏览量 <span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span></button>
            
        </div>
        <div class="goods_list">
        
        
        			<c:forEach items="${goodsList }" var="goods"> 
            		<div class="goods_item">
                        <a href="goods!getGoodById.action?id=${goods.id}"><img src="${goods.url }" alt=""></a>
                        <p class="title">
                            <a href="#">${goods.goodname }</a>
                        </p>
                        <span class="chengse">
                        <c:choose>
                        <c:when test="${goods.agingdegree==10 }">全新</c:when>
                        <c:when test="${goods.agingdegree==9 }">九成新</c:when>
                        <c:when test="${goods.agingdegree==8 }">八成新</c:when>
                        <c:when test="${goods.agingdegree==7 }">七成新</c:when>
                        <c:when test="${goods.agingdegree==6 }">六成新</c:when>
                        <c:when test="${goods.agingdegree==5 }">五成新</c:when>
                        <c:when test="${goods.agingdegree==4 }">四城新</c:when>
                        <c:when test="${goods.agingdegree==3 }">三成新</c:when>
                        <c:when test="${goods.agingdegree==2 }">两层新</c:when>
 						<c:when test="${goods.agingdegree==1 }">一层新</c:when>
                  		
                        </c:choose>     
                        </span>
                        <span class="price">￥${goods.price }</span>
                    </div>
            		</c:forEach>
            
            
            
            
        </div>
        <div id="bottom_page" style="display:none">
            <nav>
                <ul class="pagination">
                    <li class="disabled"><span><span aria-hidden="true"> « </span></span></li>
                    <li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
                    <li class=""><a href="#">2 <span class="sr-only">(current)</span></a></li>
                    <li class=""><a href="#">3 <span class="sr-only">(current)</span></a></li>
                    <li class=""><a href="#">4 <span class="sr-only">(current)</span></a></li>
                    <li class=""><a href="#" aria-label="Next"><span aria-hidden="true"> » </span></a></li>
                </ul>
            </nav>

        </div>

    </div>


</body>

</html>